<?php  /* Template Name: page1 */ ?>
<?php get_header(); ?>

	<div class="content singlepage">
		<div class="postlist">
			<?php if(have_posts()){while(have_posts()){the_post();?>
			<div id="post-<?php the_ID();?>" class="post">
				<div class="postcon">
					<h2 class="title"><a href="<?php the_permalink();?>" rel="bookmark" title="<?php the_title(); ?>">
					<?php the_title();?></a></h2>
					<span class="entry">
						<?php the_content(); ?>
					</span>
				</div>

				<div class="clear"></div>
				<?php if($options['sharebar']){ include('sharebar.php'); } ?>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
			<?php }?>
			<?php }else{ include('404page.php'); }?>
		</div>

	</div>

<span class="footi left">
	<?php if($options['footertext']=='') {?>
		Copyright &copy; <a href="<?php bloginfo('url') ?>"><?php bloginfo('name') ?></a>
	<?php } else { echo stripcslashes($options['footertext']); } ?>
</span>
<span class="copyr right"><a href="#" target="_blank" title="加我QQ:770470455"><IMG SRC="http://wxit.qiniudn.com/qq.png">
<a href="#" target="_blank" title="欢迎加我为微信好友！leon-0516"><IMG SRC="http://wxit.qiniudn.com/wc1.png">
<a href="#" target="_blank" title="欢迎关注我新浪微博 @leon-0516"><IMG SRC="http://wxit.qiniudn.com/wb.png">
<a href="#" target="_blank" title="欢迎邮我 770470455@qq.com"><IMG SRC="http://wxit.qiniudn.com/em.png">
<a href="#" target="_blank" title="github： @leon-0516"><IMG SRC="http://wxit.qiniudn.com/git.png"></a></span>
</div><div class="clear"></div>


<?php wp_footer(); $options = get_option('ice_options'); ?>

<div id="gototop" title="到顶部"></div>
<div id="gotobottom" title="到底部"></div>

<?php if($options['opentongji']){ ?>
<div id="tongjicode"><?php echo stripcslashes($options['tongjicode']) ?></div>
<?php } ?>
<?php if($options['bodycode']!=""){ echo stripcslashes($options['bodycode']); }?>
</body>

<script type="text/javascript" src="<?php if($options['sinajquery']){echo 'http://lib.sinaapp.com/js/jquery/1.8.2/jquery.min.js';}else{echo get_bloginfo('template_directory').'/js/jQuery.js';}?>"></script>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ice.js"></script>
<?php if ($options['fancybox']) {echo '<script type="text/javascript" src="'.get_bloginfo('template_directory').'/js/fb/fancybox.pack.js"></script>';}?>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/comments-ajax.js"></script>
</html>